Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
…t into AAA tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
…ching status Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
…ScanMatchDiagnostics Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
…n result is received Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1552 +/- ##
==========================================
+ Coverage 71.71% 72.39% +0.68%
==========================================
Files 515 501 -14
Lines 28700 27961 -739
Branches 13373 13166 -207
==========================================
- Hits 20581 20243 -338
- Misses 6929 7613 +684
+ Partials 1190 105 -1085
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…t_scan_match_diagnostics Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
sasakisasaki
left a comment
There was a problem hiding this comment.
Self-review comment, ...
| @@ -0,0 +1,67 @@ | |||
| // Copyright 2026 Autoware Foundation | |||
There was a problem hiding this comment.
[For PR Reviewers] This application code moved from here
| return false; | ||
| } | ||
|
|
||
| // check score diff |
There was a problem hiding this comment.
[For PR Reviewers] These codes moved to this header
…m type is unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
|
I'm reviewing. Please give me a while. |
Motsu-san
left a comment
There was a problem hiding this comment.
Thank you for your pull-request! The refactoring is scoped well. I also checked that it keeps the output the same: the key order, the value formatting, and the way levels and messages are combined.
I have 2 requests. Would you please consider the following suggestions for improvement?
… iteration injection
* Apply the following review comment:
- autowarefoundation#1552 (comment)
Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
* Apply the following review comment:
- autowarefoundation#1552 (comment)
Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
|
@Motsu-san Thank you very much for your review!! Now I applied the corresponding fix, could you please review again? 🙏 |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
…akisasaki/autoware.core into ndt-core/1-diagnostics-as-plain-data Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
|
I am very unhappy with how this PR was handled. I opened my NDT backend stack on 9 November and shared it with you both. It does not change the behavior of the node, and it still waits for review. This PR opened on 18 November, changed the same files, and merged two days later. Neither this PR nor its review mentions my stack or the merge order. As a result, these PRs of my stack now conflict with main:
I will rebase my stack on top of this PR and resolve the conflicts. The next PRs of your stack will not merge before my stack:
Step 2 already conflicts with my stack. Please rebase it on my stack after my stack merges:
|
|
@xmfcx Thank you for explaining the situation, and I'm sorry this created extra work for you. I had no intention of making things harder for you. To be honest about what happened on my side: I didn't realize that your NDT backend stack (#1524 / #1526 / #1534 / #1527) touched the same files, so I didn't consider the merge order when I reviewed and merged #1552. I see that I was requested as a code owner on #1527, but I didn't connect it with #1552 at the time. For context, I do AWF reviews in whatever spare time I can find, one PR at a time. Refactoring PRs are usually quick to review, so I sometimes pick them up first. That is why #1552 moved quickly; it was not meant to jump ahead of your stack. You mentioned that you shared the stack with us. Could you let me know where that was? I checked #1524 and #1527 but couldn't find it, and I'd like to make sure I don't miss it next time. As requested, #1558 will wait until your stack is merged, and I will make sure it is rebased on top of it. Thanks again for taking care of the rebase on your side. |
|
@motsu -san Thanks for caring 💖. Next time I will contact more directly. No worries. Thanks for the reviews and swift actions on your side!
Thanks again for taking time for maintaining efforts! |

Description
=> Yes, now self-review is done!!! 👍 Ready for review!!! 💪
Builds the scan matching diagnostics as plain data, without ROS, so that the core logic extracted in later PRs can return them.
DiagnosticsReportmoves out ofmap_update_module.hppinto its own header,diagnostics_report.hpp.Detail is here
Click to open
ScanMatchDiagnostics(new, ROS-free) turns the values observed while matching one scan (ScanMatchDiagnosticValues) into the scan matching part ofscan_matching_status. The convergence verdicts (is_ok_*) are decided by the scan matching and only reported here, never recomputed.ScanMatchDiagnosticValuesand applies the returned report, instead of writing each key and message itself.best_particle_scoreof the align service is added to the diagnostics where the align result is received, instead of insidealign_pose(), so that the search itself writes no diagnostics.Related links
Stack (each PR is based on the one before it):
I'll update the list of stack PRs status below, as I like to ensure the step, I'm going to create the PR after merging currently ongoing one.
SmartPoseBufferwithout a logger #1549MapUpdateModuleNdtScanMatchercoreHow was this PR tested?
Ran the following command, I verified all the tests passed 👍
$ PACKAGE_NAME=autoware_ndt_scan_matcher \ && colcon build --packages-up-to $PACKAGE_NAME --cmake-args -DCMAKE_BUILD_TYPE=Release \ && colcon test --packages-select $PACKAGE_NAME --event-handlers console_cohesion+What I want to emphasize
test_scan_match_diagnosticscovers each check ofScanMatchDiagnostics(levels, messages, keys and their order);Notes for reviewers
Diagnostics can trigger an MRM, so every key, value type, level and message is kept unchanged, including the order the keys are added in. The characterization tests check this.
Interface changes
None.
Effects on system behavior
Should be none: as the "Description" section says, this PR makes diagnostics output to be ROS-free. The output observed by user itself should be same as before.(EDITED/ADDED)
execution_time(in/diagnosticsand theexe_time_mstopic) no longer includes formatting the scan matching diagnostics. That work now runs after the measurement ends, so the reported time is slightly shorter, most likely by a few microseconds (not measured), which is negligible againstcritical_upper_bound_exe_time_ms(100 ms). Diagnostics keys, levels and messages are unchanged.